{include file="common/head" /}
    <body>
        <div class="x-body">
            <blockquote class="layui-elem-quote">欢迎！</blockquote>
            <fieldset class="layui-elem-field">
              <legend>信息统计</legend>
              <div class="layui-field-box">
                <table class="layui-table" lay-even>
                    <thead>
                        <tr>
                            <th>统计</th>
                            <th>用户</th>
                            <th>订单</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>总数</td>
                            <td>{$user_count}</td>
                            <td>{$order_count}</td>
                        </tr>
                        <tr>
                            <td>今日</td>
                            <td>{$user_count_today}</td>
                            <td>{$order_count_today}</td>

                        </tr>
                        <tr>
                            <td>昨日</td>
                            <td>{$user_count_yestoday}</td>
                            <td>{$order_count_yestoday}</td>

                        </tr>
                        <tr>
                            <td>本周</td>
                            <td>{$user_count_week}</td>
                            <td>{$order_count_week}</td>

                        </tr>
                        <tr>
                            <td>本月</td>
                            <td>{$user_count_month}</td>
                            <td>{$order_count_month}</td>
                        </tr>
                    </tbody>
                </table>
                <table class="layui-table">
                <thead>
                    <tr>
                        <th colspan="2" scope="col">服务器信息</th>
                    </tr>
                </thead>
                <tbody>

                    <tr>
                        <td>服务器IP地址</td>
                        <td>120.78.71.240</td>
                    </tr>
                    <tr>
                        <td>服务器域名</td>
                        <td>https://ericnothing.cn</td>
                    </tr>
                    <tr>
                        <td>服务器端口 </td>
                        <td>80</td>
                    </tr>
                    <tr>
                        <td>服务器当前时间 </td>
                        <td><div id="timeShow"></div></td>
                    </tr>
                    </tbody>
            </table>
              </div>
            </fieldset>

        </div>
    </body>

<script language="javascript">
    var t = null;
    t = setTimeout(time,1000);//开始执行
    function time()
    {
        clearTimeout(t);//清除定时器
        dt = new Date();
        var h=dt.getHours();
        var m=dt.getMinutes();
        var s=dt.getSeconds();
        document.getElementById("timeShow").innerHTML = h+"时"+m+"分"+s+"秒";
        t = setTimeout(time,1000); //设定定时器，循环执行
    }
</script>
</html>